

package jetbrains.buildServer.server.graphql.resolver.agentPool;

import java.util.List;
import jetbrains.buildServer.serverSide.auth.Permission;
import org.jetbrains.annotations.NotNull;

public class ManageAgentsInPoolUnmetRequirements {
  private final List<String> myProjectsMissingPermission;
  private final int myHiddenProjectsMissingPermission;
  private final Permission myPerProjectPermission;
  private final List<Permission> myGlobalPermissions;

  public ManageAgentsInPoolUnmetRequirements(@NotNull List<String> projectsMissingPermission,
                                             int hiddenProjectsMissingPermission,
                                             @NotNull Permission perProjectPermission,
                                             @NotNull List<Permission> globalPermissions) {
    myProjectsMissingPermission = projectsMissingPermission;
    myHiddenProjectsMissingPermission = hiddenProjectsMissingPermission;
    myPerProjectPermission = perProjectPermission;
    myGlobalPermissions = globalPermissions;
  }

  @NotNull
  public List<String> getProjectsMissingPermission() {
    return myProjectsMissingPermission;
  }

  @NotNull
  public Permission getPerProjectPermission() {
    return myPerProjectPermission;
  }

  @NotNull
  public List<Permission> getGlobalPermissions() {
    return myGlobalPermissions;
  }

  public int getHiddenProjectsMissingPermission() {
    return myHiddenProjectsMissingPermission;
  }
}